/**
  * @title: 返回上一页指令
  * @description: 
  * @author JUN
  */

import Vue from "vue"
import router from "@/router/index.js"

Vue.directive("goBack",{
	bind(el){
		el.onclick = function(){
			router.go(-1)
		}
	}
})